<?php


function myprint($struct){
	echo "<pre>";
	print_r($struct);
	echo "</pre>";
}


function get_parameter($name){
	if (isset($_GET[$name]) )  return $_GET[$name];
	if (isset($_POST[$name])) return $_POST[$name];
}

function show_all_params(){
	echo 'GET: <br/>';
	myprint($_GET);

	echo 'POST: <br/>';
	myprint($_POST);
	
	echo '<hr/>';
	
}

?>
